﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="Studio77.RuneMaster.Views.ToolItemInGame"
    mc:Ignorable="d"
    Height="50" Width="50">
	<UserControl.Resources>
		<Storyboard x:Name="StoryboardClick">
			<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
				<EasingColorKeyFrame KeyTime="0" Value="#FF292929"/>
				<EasingColorKeyFrame KeyTime="0:0:0.1" Value="Yellow">
					<EasingColorKeyFrame.EasingFunction>
						<PowerEase EasingMode="EaseInOut"/>
					</EasingColorKeyFrame.EasingFunction>
				</EasingColorKeyFrame>
				<EasingColorKeyFrame KeyTime="0:0:0.4" Value="#FF292929"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
    
	<UserControl.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</UserControl.FontFamily>
	<UserControl.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</UserControl.FontSize>
	<UserControl.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</UserControl.Foreground>
    
    <Grid x:Name="LayoutRoot">
    	<Image x:Name="imgTool" Source="/Images/add500.png" Stretch="Fill"/>
    	<Rectangle x:Name="rectangle" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="50" RadiusY="3" RadiusX="3" StrokeThickness="3" Margin="0,0,-11,-11" Stroke="#FF292929"/>
    	<Grid x:Name="grid" HorizontalAlignment="Right" VerticalAlignment="Bottom" IsHitTestVisible="False">
    		<Ellipse HorizontalAlignment="Left" Height="20" VerticalAlignment="Top" Width="20" Fill="Black" Stroke="White"/>
    		<TextBlock x:Name="txtCount" Margin="0" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Foreground="White" FontSize="13.333" FontFamily="Arial" TextAlignment="Center"/>
        
    	</Grid>

    </Grid>
</UserControl>